<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>" id="base">
    
    <title>My JSP 'Bianqian.jsp' starting page</title>
   <%--  <sx:head/> --%>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script src="js/nicEdit.js" type="text/javascript"></script>
	<script type="text/javascript">
	bkLib.onDomLoaded(function() {
		new nicEditor().panelInstance('area1');
	});
	</script>
    <script type="text/javascript">
    
       function delete_note(){
	      if(confirm("确认删除？")){
	         document.myform.action="<%=request.getContextPath()%>/yz/mynotedelete";
	         document.myform.submit();
	        }
      }
      function update_note(){
	      if(confirm("确认修改？")){
	         document.myform.action="<%=request.getContextPath()%>/yz/mynoteupdate"; 
	         document.myform.submit();
	         }
      }
    </script>
  </head>
  
  <body style="margin-left: 20px;">
    <%-- <h2>个人便签设置</h2>
   	<span style="float: right;">个人便签设置</span>
   	<br> --%>
   	<p style="margin-top: 20px;margin-bottom: 20px;">>>当前位置:个人便签设置</p>
   	<hr>
   	<div style="margin-left: 180px;">
   	  <br>
   	   <form action="" method="post" name="myform" id="myform">
   	        <input type="hidden" value="${mn.noteid}" name="myno.noteid" />
   	        <label>便签标题:</label>
	   		<input type="text" name="myno.notetitle" size="100" value="${mn.notetitle}"/> <br><br>
		    <label>创建时间:</label>
	   		<input type="text" name="myno.createtime" size="40" value="${mn.createtime}" onclick="WdatePicker()" />
	   		&nbsp;&nbsp;&nbsp;&nbsp;
	   		<label>创 建 人:</label>
	   		<input type="text" size="40" value="${mn.userinfo.username}" name="username" disabled="disabled" /><br><br>
	   		<label>便签内容:</label><br><br>
			<textarea cols="86" id="area1" rows="20" name="myno.notecontent" >
			    ${mn.notecontent}
			</textarea><br><br>
			<div style="float: right;margin-right: 200px;">
			   <input type="submit" value="修改并保存"  onclick="update_note()" />
		       <input type="submit" value="删除当前标签"  onclick="delete_note()" />
			</div>
   	   </form>
   	</div>
  </body>
</html>

